---
layout: default
title: EasyMock
github_enabled: false
locale: en
---

<div class="disclaimer">

  <div class="container">

    <!-- Disclaimer -->
    <div class="row text-center">
      <!-- <h1>EasyMock</h1> -->
      <img class="logo" src="img/easymock-logo.png" alt="EasyMock" width="310">
      <p class="lead">Easy mocking. Better testing.</p>
      <p>
        <a class="btn btn-lg btn-getting-started" href="getting-started.html" role="button">Getting started</a>
        <a class="btn btn-lg btn-download" href="https://bintray.com/artifact/download/easymock/distributions/easymock-{{site.latest_version}}-bundle.zip" role="button">Download (v{{site.latest_version}})</a>
      </p>
    </div>

  </div>
</div>

<!-- Example row of columns -->
<div class="presentation">
  <div class="container">
    <div class="row text-center">
      <div class="aspect col-lg-4">
        <img src="img/easymock-presentation-why.png" height="80" alt="Why">
        <h2>Why</h2>
        <p class="lead">Great testing includes isolation</p>
        <p class="description">Most parts of a software system do not work in isolation, but collaborate with other parts to get their job done. </p>
        <p class="description">In a lot of cases, we do not care about using real collaborators implementation in unit testing, as we trust these collaborators.</p>
        <p class="description">Mock Objects replace collaborators of the unit under test.</p>
      </div>
      <div class="aspect col-lg-4">
        <img src="img/easymock-presentation-how.png" height="80" alt="How">
        <h2>How</h2>
        <p class="lead">Isolation involves Mock Objects</p>
        <p class="description">To test a unit in isolation or mount a sufficient environment, we have to simulate the collaborators in the test.</p>
        <p class="description">A Mock Object is a test-oriented replacement for a collaborator. It is configured to simulate the object that it replaces in a simple way.</p>
        <p class="description">In contrast to a stub, a Mock Object also verifies whether it is used as expected.</p>
     </div>
      <div class="aspect col-lg-4">
        <img src="img/easymock-presentation-what.png" height="80" alt="What">
        <h2>What</h2>
        <p class="lead">EasyMock makes mocking easier</p>
        <p class="description">EasyMock has been the first dynamic Mock Object generator, relieving users of hand-writing Mock Objects, or generating code for them.</p>
        <p class="description">EasyMock provides Mock Objects by generating them on the fly using Java proxy mechanism.</p>
      </div>
    </div>
  </div>
</div>

{% if page.github_enabled %}
<div class="statistics">
  <div class="container text-center">
    <div class="text-center">
      <iframe src="http://ghbtns.com/github-btn.html?user=easymock&amp;repo=easymock&amp;type=watch&amp;count=true&amp;size=large" allowtransparency="true" frameborder="0" scrolling="0" width="156px" height="30px"></iframe>
      <iframe src="http://ghbtns.com/github-btn.html?user=easymock&amp;repo=easymock&amp;type=fork&amp;count=true&amp;size=large" allowtransparency="true" frameborder="0" scrolling="0" width="156px" height="30px"></iframe>
      <iframe src="http://ghbtns.com/github-btn.html?user=easymock&amp;type=follow&amp;count=true&amp;size=large" allowtransparency="true" frameborder="0" scrolling="0" width="200px" height="30px"></iframe>
    </div>
  </div>
</div>
{% endif %}

